package com.enzoism.springboot.fastjson.dao;

import com.enzoism.springboot.fastjson.model.Scores;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface ScoresDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Scores record);

    /**
     * 数据库插入会真实失败
     */
    int insertSqlException(Scores record);

    int insertSelective(Scores record);

    Scores selectByPrimaryKey(Integer id);

    List<Scores> selectDataList();

    int updateByPrimaryKeySelective(Scores record);

    int updateByPrimaryKey(Scores record);
}